<?php

namespace mpend\modules\home\controllers;

use Yii;
use mpend\components\Controller;
use mpend\modules\home\models\RecommendSearch;

/**
 * 首页内容推荐列表
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class RecommendController extends Controller {

    /**
     * 推荐模型
     * @inheritdoc
     */
    public $modelClass = RecommendSearch::class;

    /**
     * 推荐列表
     * @inheritdoc
     */
    public function actionIndex() {
        /* @var $model \apiend\modules\home\models\RecommendSearch */
        $model = new $this->modelClass;
        $model->user_id = $this->uid;
        return $model->search();
    }

}
